<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HexFiend: HFRangeWrapper Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">HexFiend
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Instance Methods</a> &#124;
<a href="#pub-static-methods">Class Methods</a> &#124;
<a href="interface_h_f_range_wrapper-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">HFRangeWrapper Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>An object wrapper for the <a class="el" href="struct_h_f_range.html" title="HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. ...">HFRange</a> type.  
 <a href="interface_h_f_range_wrapper.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for HFRangeWrapper:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_h_f_range_wrapper.png" usemap="#HFRangeWrapper_map" alt=""/>
  <map id="HFRangeWrapper_map" name="HFRangeWrapper_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Instance Methods</h2></td></tr>
<tr class="memitem:a2c0169bf7e032062da362aa382a29c77"><td class="memItemLeft" align="right" valign="top">(<a class="el" href="struct_h_f_range.html">HFRange</a>)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_h_f_range_wrapper.html#a2c0169bf7e032062da362aa382a29c77">HFRange</a></td></tr>
<tr class="separator:a2c0169bf7e032062da362aa382a29c77"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Class Methods</h2></td></tr>
<tr class="memitem:a3d11996b3274aeda30b89386123bf58e"><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_h_f_range_wrapper.html">HFRangeWrapper</a> *)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_h_f_range_wrapper.html#a3d11996b3274aeda30b89386123bf58e">withRange:</a></td></tr>
<tr class="separator:a3d11996b3274aeda30b89386123bf58e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c0de04b0544c969939664d00960a5e9"><td class="memItemLeft" align="right" valign="top">(NSArray *)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_h_f_range_wrapper.html#a4c0de04b0544c969939664d00960a5e9">withRanges:count:</a></td></tr>
<tr class="separator:a4c0de04b0544c969939664d00960a5e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9bbc5804b1340096cd4e74eddc19e2e"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_h_f_range_wrapper.html#ab9bbc5804b1340096cd4e74eddc19e2e">getRanges:fromArray:</a></td></tr>
<tr class="separator:ab9bbc5804b1340096cd4e74eddc19e2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76755f6e5a387cd1e534170373b46ca2"><td class="memItemLeft" align="right" valign="top">(NSArray *)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_h_f_range_wrapper.html#a76755f6e5a387cd1e534170373b46ca2">organizeAndMergeRanges:</a></td></tr>
<tr class="separator:a76755f6e5a387cd1e534170373b46ca2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A simple class responsible for holding an immutable <a class="el" href="struct_h_f_range.html" title="HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. ...">HFRange</a> as an object. Methods that logically work on multiple HFRanges usually take or return arrays of HFRangeWrappers. </p>
</div><h2 class="groupheader">Method Documentation</h2>
<a id="a2c0169bf7e032062da362aa382a29c77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c0169bf7e032062da362aa382a29c77">&sect;&nbsp;</a></span>HFRange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="struct_h_f_range.html">HFRange</a>) <a class="el" href="struct_h_f_range.html">HFRange</a> </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the <a class="el" href="struct_h_f_range.html" title="HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. ...">HFRange</a> for this <a class="el" href="interface_h_f_range_wrapper.html" title="An object wrapper for the HFRange type. ">HFRangeWrapper</a>. </p>

</div>
</div>
<a id="a3d11996b3274aeda30b89386123bf58e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d11996b3274aeda30b89386123bf58e">&sect;&nbsp;</a></span>withRange:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="interface_h_f_range_wrapper.html">HFRangeWrapper</a> *) withRange: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="struct_h_f_range.html">HFRange</a>)&#160;</td>
          <td class="paramname"><em>range</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates an autoreleased <a class="el" href="interface_h_f_range_wrapper.html" title="An object wrapper for the HFRange type. ">HFRangeWrapper</a> for this <a class="el" href="struct_h_f_range.html" title="HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. ...">HFRange</a>. </p>

</div>
</div>
<a id="a4c0de04b0544c969939664d00960a5e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c0de04b0544c969939664d00960a5e9">&sect;&nbsp;</a></span>withRanges:count:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (NSArray *) withRanges: </td>
          <td></td>
          <td class="paramtype">(const <a class="el" href="struct_h_f_range.html">HFRange</a> *)&#160;</td>
          <td class="paramname"><em>ranges</em></td>
        </tr>
        <tr>
          <td class="paramkey">count:</td>
          <td></td>
          <td class="paramtype">(NSUInteger)&#160;</td>
          <td class="paramname"><em>count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates an NSArray of HFRangeWrappers for this <a class="el" href="struct_h_f_range.html" title="HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. ...">HFRange</a>. </p>

</div>
</div>
<a id="ab9bbc5804b1340096cd4e74eddc19e2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9bbc5804b1340096cd4e74eddc19e2e">&sect;&nbsp;</a></span>getRanges:fromArray:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) getRanges: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="struct_h_f_range.html">HFRange</a> *)&#160;</td>
          <td class="paramname"><em>ranges</em></td>
        </tr>
        <tr>
          <td class="paramkey">fromArray:</td>
          <td></td>
          <td class="paramtype">(NSArray *)&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Given an NSArray of HFRangeWrappers, get all of the HFRanges into a C array. </p>

</div>
</div>
<a id="a76755f6e5a387cd1e534170373b46ca2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76755f6e5a387cd1e534170373b46ca2">&sect;&nbsp;</a></span>organizeAndMergeRanges:()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (NSArray *) organizeAndMergeRanges: </td>
          <td></td>
          <td class="paramtype">(NSArray *)&#160;</td>
          <td class="paramname"><em>inputRanges</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Given an array of HFRangeWrappers, returns a "cleaned up" array of equivalent ranges. This new array represents the same indexes, but overlapping ranges will have been merged, and the ranges will be sorted in ascending order. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_h_f_functions_8h_source.html">HFFunctions.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
